package com.monochromebytes.mononet.test;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.SlickException;


public class SlickWindow {

    private final AppGameContainer container;
    
    public SlickWindow(BasicGame game) throws SlickException {
        this.container = new AppGameContainer(game);
        this.container.setDisplayMode(600, 600, false);
        this.container.setShowFPS(true);
        this.container.setTargetFrameRate(100);
        this.container.setMinimumLogicUpdateInterval(1);
        this.container.setMaximumLogicUpdateInterval(1);
        this.container.setAlwaysRender(true);
        this.container.start();
    }
    
    public AppGameContainer getContainer() {
        return this.container;
    }
}
